package com.clever.mall.mapper;

import com.clever.mall.entity.Refund;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RefundMapper {

    //添加
    int insertRefund(@Param("Refund") Refund refund);

    //查询所有退款信息
    List<Refund> selectRefundAll(@Param("uid") int uid);

    //通过id查询
    Refund selectRefundById(@Param("rid") int rid);

    //通过订单id查询
    Refund selectRefundByOrderId(@Param("oid") int oid);

    Refund selectRefund(@Param("Refund") Refund refund);

    //修改状态
    int updateRefundStatus(@Param("ref") Refund ref);
}
